MAVEN="/usr/bin/mvn"

.PHONY: default
default: run

.PHONY: run
run: build
	@ $(MAVEN) exec:java

.PHONY: generate_ast
generate_ast:
	@ $(MAVEN) compiler:compile@generate_ast
	@ $(MAVEN) exec:java@generate_ast

.PHONY: print_ast
print_ast: build
	@ $(MAVEN) exec:java@print_ast

.PHONY: build
build:
	@ $(MAVEN) compile

.PHONY: test
test:
	@ $(MAVEN) test

.PHONY: clean
clean:
	@ $(MAVEN) clean
